﻿<%@ page session="false" %>
<%@ page language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <%@ include file="common/meta.jsp" %>
    <title>${projectName} - 主页</title>
    <script src="${ctx}/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="${ctx}/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="${ctx}/js/plugins/layer/layer.min.js"></script>
    <script src="${ctx}/js/hplus.js"></script>
    <script type="text/javascript" src="${ctx}/js/contabs.js"></script>
    <script src="${ctx}/js/plugins/pace/pace.min.js"></script>
    <!--[if lt IE 8]>
    <script>
        alert('体检管理平台已不支持IE6-8，请使用谷歌、火狐等浏览器\n或360、QQ等国产浏览器的极速模式浏览本页面！');
    </script>
    <![endif]-->
    <script>
        <%--var userId = ${userId};--%>
    </script>
    <style type="text/css">
        html body {
            overflow: hidden;
        }

        span {
            font-weight: normal;
        }

        .userManage {
            width: 200px !important;
            height: auto;
        }

        .my-but {
            background-color: #18a689 !important;
            color: #fff;
            border-bottom: 1px solid #ddd;
        }

        .nickName {
            font-size: 12px;
            color: #666;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            float: right;
            width: 55px;
        }

        #content-main {
            height: calc(100% - 45px) !important;
        }
        div .left_nav{
            display: none!important;
            margin-right: -20px;
        }
        /*.J_iframe{*/
           /*overflow: paged-y!important;*/
        /*}*/
    </style>
    <script>
    </script>
</head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<div id="wrapper">
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="nav-close"><i class="fa fa-times-circle"></i>
        </div>
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">
                <li class="nav-header">
                    <div class="dropdown profile-element">
                        <span><img alt="image"
                                   src="${ctx}/images/common/logo.png"
                                   style="width: 165px;height: 40px;"/></span>
                    </div>
                    <div class="logo-element">芸泰
                    </div>
                </li>
                <li class="divider"></li>

                <c:forEach items="${pfMenuList}" var="menu" varStatus="menusVar">
                    <li>
                            <a id="menus_a_${menusVar.index}" href="index.html#">
                                <c:if test="${not empty menu.menuImg}">
                                    <i class="fa ${menu.menuImg}" style="width: 8px!important;height: 8px!important;"></i>
                                </c:if>
                                <span class="nav-label" style="white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">${menu.menuName}</span>
                                <span class="fa arrow"></span>
                            </a>
                            <ul class="nav nav-second-level">
                                <c:forEach items="${menu.childPfMenuList}" var="childMenu">
                                        <li>
                                            <a class="J_menuItem" id="${childMenu.id}"
                                               href="${ctx}${childMenu.menuUrl}?myMenuId=${childMenu.id}">
                                                <c:if test="${not empty childMenu.menuImg}">
                                                    <i class="fa ${childMenu.menuImg}"  style="width: 8px!important;height: 8px!important;"></i>
                                                </c:if>
                                                <span>${childMenu.menuName}</span></a>
                                        </li>
                                </c:forEach>
                            </ul>
                    </li>
                </c:forEach>
            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row border-bottom" hidden="hidden">
            <nav class="navbar navbar-static-top" role="navigation"
                 style="margin-bottom: 0">
                <div class="navbar-header">
                    <a class="navbar-minimalize minimalize-styl-2 btn btn-primary "
                       href="#">
                        <i class="fa fa-bars"></i>
                    </a>
                </div>
            </nav>
        </div>
        <div class="row content-tabs">
            <button class="roll-nav roll-left J_tabLeft"><i
                    class="fa fa-backward"></i>
            </button>
            <nav class="page-tabs J_menuTabs">
                <div class="page-tabs-content">
                    <a href="javascript:;" class="active J_menuTab"
                       data-id="index_v1.html">控制台</a>
                </div>
            </nav>
            <button class="roll-nav roll-right J_tabRight"
                    style="right: 161px;"><i class="fa fa-forward"></i>
            </button>
            <div class="btn-group roll-nav roll-right"
                 style="right: 0px;width: 161px;">
                <div class="dropdown">
                    <button class="dropdown-toggle count-info"
                            style="float: left;" data-toggle="dropdown">
                        关闭操作<span
                            class="caret"></span>
                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-messages"
                        style="margin-top: 45px;margin-right: 80px;">
                        <li class="J_tabShowActive"><a>定位当前选项卡</a>
                        </li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                        </li>
                        <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                        </li>
                    </ul>
                </div>
                <div class="dropdown">
                    <button class="dropdown-toggle count-info"
                            style="float: left;border-left :10px;border-color: black;white-space:nowrap;"
                            data-toggle="dropdown">
                        <i class="fa fa-user" style="float: left;margin-top: 14px"></i>
                            <div class="nickName" style="width: 53px;overflow: hidden;/*自动隐藏文字*/
                            text-overflow: ellipsis;/*文字隐藏后添加省略号*/
                            white-space: nowrap;/*强制不换行*/">${userName}</div>
                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-messages"
                        style="margin-top: 45px;">
                        <%--<li>
                            <a href="#" data-toggle="modal" data-target="#myModal">
                                <div>
                                    <i class="fa fa-cog fa-fw"></i>修改密码
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>--%>
                        <li class="dropdown hidden-xs">
                            <a class="right-sidebar-toggle"
                               aria-expanded="false">
                                <div>
                                    <i class="fa fa-tasks fa-fw"></i>主题设置
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <%--<a href="#" data-toggle="modal" data-target="#loginConfirm">--%>
                            <a href="#" id="loginConfirm">
                                <div>
                                    <i class="fa fa-sign-out fa-fw"></i>安全退出
                                </div>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="row J_mainContent" id="content-main">
            <iframe class="J_iframe" name="iframe0" width="100%" height="100%"
                    src="${ctx}/homePage"
                    frameborder="0" data-id="index_v1.html" seamless></iframe>
        </div>
        <%--<div class="footer">--%>
        <%--<div class="pull-right">&copy; 2014-2017 <a href="http://www.hsyuntai.com/" target="_blank">恒生芸泰网络科技有限公司</a>--%>
        <%--</div>--%>
        </div>
    </div>
    <!--右侧部分结束-->
    <!--右侧边栏开始-->
    <div id="right-sidebar" style="height: 306px;margin-top: -15px;">
        <div class="sidebar-container" style="height: auto;">
            <div class="tab-content">
                <div id="tab-1" class="tab-pane active">
                    <div class="sidebar-title">
                        <h3><i class="fa fa-comments-o"></i> 主题设置</h3>
                        <small><i class="fa fa-tim"></i>
                            你可以从这里选择和预览主题的布局和样式，这些设置会被保存在本地，下次打开的时候会直接应用这些设置。
                        </small>
                    </div>
                    <div class="skin-setttings"
                         style="margin-left: 0; width: 100%;">
                        <div class="setings-item">
                            <span>收起左侧菜单</span>
                            <div class="switch">
                                <div class="onoffswitch">
                                    <input type="checkbox" name="collapsemenu"
                                           class="onoffswitch-checkbox"
                                           id="collapsemenu">
                                    <label class="onoffswitch-label"
                                           for="collapsemenu">
                                        <span class="onoffswitch-inner"></span>
                                        <span class="onoffswitch-switch"></span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="setings-item">
                            <span>固定顶部</span>

                            <div class="switch">
                                <div class="onoffswitch">
                                    <input type="checkbox" name="fixednavbar"
                                           class="onoffswitch-checkbox"
                                           id="fixednavbar">
                                    <label class="onoffswitch-label" for="fixednavbar">
                                        <span class="onoffswitch-inner"></span>
                                        <span class="onoffswitch-switch"></span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="setings-item">
                            <span>固定宽度</span>
                            <div class="switch">
                                <div class="onoffswitch">
                                    <input type="checkbox" name="boxedlayout" class="onoffswitch-checkbox"
                                           id="boxedlayout">
                                    <label class="onoffswitch-label" for="boxedlayout">
                                        <span class="onoffswitch-inner"></span>
                                        <span class="onoffswitch-switch"></span>
                                    </label>
                                </div>
                            </div>
                        </div>

                        <a class="right-sidebar-toggle" aria-expanded="false">
                            <div class="title my-but"><span>关闭</span></div>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--右侧边栏结束-->
</div>
<!--修改密码-->
<div class="modal inmodal" id="myModal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="true"
     data-keyboard="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content animated bounceInRight" style="margin-top: 150px;">
            <div class="modal-header" style="padding: 10px">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
                        class="sr-only">关闭</span>
                </button>
                <h4 class="modal-title">修改登录密码</h4>
            </div>
            <div class="modal-body">
                <div class="row"><label class="col-sm-12 control-label"><span>原始密码：</span></label></div>
                <div class="row">
                    <div class="col-sm-12"><input class="form-control" id="OldPWD" type="password"></div>
                </div>
                <div class="row"><label class="col-sm-12 control-label"><span>新密码：</span></label></div>
                <div class="row">
                    <div class="col-sm-12"><input class="form-control" id="NewPWD" type="password"></div>
                </div>
                <div class="row"><label class="col-sm-12 control-label"><span>确认新密码：</span></label></div>
                <div class="row">
                    <div class="col-sm-12"><input class="form-control" id="NewPwdT" type="password"></div>
                </div>
                <div class="row">
                    <div class="col-sm-12" id="tipTxt" style="text-align: center;color: red;"></div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="editPwd();">保存</button>
                <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<div class="modal inmodal" id="loginConfirm" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="true"
     data-keyboard="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content animated bounceInRight" style="margin-top: 150px;">
            <div class="modal-header" style="padding: 10px">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
                        class="sr-only">关闭</span>
                </button>
                <%--<h4 class="modal-title">是否确认退出</h4>--%>
            </div>
            <div class="modal-body">
                是否确认退出
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="loginOut();">确认</button>
                <button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<script src="${ctx}/js/index/index.js?t=${now}"></script>
</body>
</html>